import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: () => import( '@/views/Home/index')
    },
    {
        path: '/upload',
        name: 'upload',
        component: () => import( '@/views/Upload/imgUpload')
    },
    {
        path: '/uploadList',
        name: 'uploadList',
        component: () => import( '@/views/Upload/imgUploadList')
    },
    {
        path: '/table',
        name: 'table',
        component: () => import( '@/views/Upload/Table')
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
